package com.zhoukx.factory.factorymethod.pizzastore.order;


import com.zhoukx.factory.factorymethod.pizzastore.pizza.BJCheesePizza;
import com.zhoukx.factory.factorymethod.pizzastore.pizza.BJPepperPizza;
import com.zhoukx.factory.factorymethod.pizzastore.pizza.Pizza;

/**
 * @ClassName BJorderPizza
 * @Description: 北京的披萨实现类
 * @Author zhoukx
 * @Date 2020/8/6
 **/
public class BJorderPizza extends  OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")) {
            pizza = new BJCheesePizza();
        }else  if (orderType.equals("pepper")){
            pizza = new BJPepperPizza();
        }
        return pizza;
    }
}
